// 云函数入口函数
const cloud = require('wx-server-sdk')

cloud.init()

exports.main = async (event, context) => {
  try{
    return await {
      sum: event.a + event.b
    }
  }catch(e) {
    console.log(e)
  }
}